__author__ = 'mariia.vitiuk'
from model.user import User
from selenium_fixture import app
from selenium import webdriver




def test_login(app):
    app.go_to_home_page()
    app.login(User.Admin())
    assert app.is_logged_in()
    app.logout()
    assert app.is_not_logged_in()


def test_login_with_invalid_credentials(app):
     app.go_to_home_page()
     app.login(User.random())
     assert app.is_not_logged_in()
